package com.maya.medicalwastes.entity;

import java.util.ArrayList;

/**
 * @description 主页菜单
 * @user gzl
 * @date 2017/6/12
 * @time 17:23
 */

public class MenuEntity {
    /**
     * 对应的fragment的tag
     */
    private String tag;
    private String createBy;
    private String createTime;//2017-07-07 11:09:28
    private boolean enable;
    private boolean expand;
    /**
     * url地址
     */
    private String iconcls;
    /**
     * id
     */
    private String id;
    private boolean isShow;
    /**
     * 0 有子叶子 1最后一层叶子
     */
    private Integer leaf;
    /**
     * 菜单名称
     */
    private String menuName;//主页
    /**
     * 菜单类型
     */
    private Integer menuType;
    /**
     * 上一级父类id
     */
    private String parentId;
    /**
     * 拥有的权限
     */
    private String permission;
    /**
     * 请求地址
     */
    private String request;
    private Integer sortNo;
    private String updateBy;
    private String updateTime;
    private boolean isSelect;
    /**
     * 科室类型列表 包含才显示
     */
    private String deptType;
    /**
     * icon图标
     * 有icon图标就用icon，没有则用iconcls
     */
    private int iconId = -1;

    private int pressIconId = -1;
    /**
     * 子菜单列表
     */
    private ArrayList<MenuEntity> menuBeans;


    public MenuEntity(String iconcls, String menuName) {
        this.iconcls = iconcls;
        this.menuName = menuName;
    }

    public MenuEntity(String tag, String iconcls, String menuName) {
        this.tag = tag;
        this.iconcls = iconcls;
        this.menuName = menuName;
    }

    public MenuEntity(String tag, String iconcls, String menuName, String deptType) {
        this.tag = tag;
        this.iconcls = iconcls;
        this.menuName = menuName;
        this.deptType = deptType;
    }

    public MenuEntity(String tag, String iconcls, String menuName, String deptType, int iconId, int pressIconId) {
        this.tag = tag;
        this.iconcls = iconcls;
        this.menuName = menuName;
        this.deptType = deptType;
        this.iconId = iconId;
        this.pressIconId = pressIconId;
    }

    public int getIconId() {
        return iconId;
    }

    public void setIconId(int iconId) {
        this.iconId = iconId;
    }

    public String getDeptType() {
        return deptType;
    }

    public void setDeptType(String deptType) {
        this.deptType = deptType;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public boolean isExpand() {
        return expand;
    }

    public void setExpand(boolean expand) {
        this.expand = expand;
    }

    public String getIconcls() {
        return iconcls;
    }

    public void setIconcls(String iconcls) {
        this.iconcls = iconcls;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean show) {
        isShow = show;
    }

    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public ArrayList<MenuEntity> getMenuBeans() {
        return menuBeans;
    }

    public void setMenuBeans(ArrayList<MenuEntity> menuBeans) {
        this.menuBeans = menuBeans;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public int getPressIconId() {
        return pressIconId;
    }
}
